package com.shinbada.modules.sys.entity;


import com.shinbada.core.persistence.DataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * 数据字典Entity
 *
 * @author initcap
 * @version 2017-01-16
 */
@Data
@ToString
@ApiModel("字典键值")
public class DictValue extends DataEntity<DictValue> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("标签名")
    private String label;
    @ApiModelProperty("键值")
    private String value;
    @ApiModelProperty("排序")
    private String sort;
    @ApiModelProperty("外键 父类")
    private DictType dictType;

    public DictValue() {
        super();
    }

    public DictValue(String id) {
        super(id);
    }

    public DictValue(DictType dictType) {
        this.dictType = dictType;
    }

}